package com.tequila.core.dao;

import com.tequila.domain.dto.CardDto;
import com.tequila.domain.entity.Card;
import com.tequila.domain.query.CardQuery;

import java.util.List;

public interface CardDao {
    Card queryById(Long id);

    List<CardDto> queryByIdList(List<Long> idList);

    List<CardDto> queryListByParam(CardQuery query);

    List<CardDto> queryPageListByParam(CardQuery query);

    int queryPageCountByParam(CardQuery query);

    int insert(Card entity);

    int insertSelective(Card entity);

    int updateById(Card param);

    int updateSelectiveById(Card param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}